/**
 * Copyright (C) 2022 - 长期
 * All rights reserved.
 * <p>
 * 版权所有 (C) 中国烟草总公司
 */
package com.itzhoun.controller;

import com.itzhoun.model.base.Result;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhounan
 * @date 2024/01/22 21:47
 * @Description
 */
@RestController
@RequestMapping("/api")
public class PublicController {

    private static final Logger _logger = LoggerFactory.getLogger(PublicController.class);

    /**
     * 入网绑定查询接口
     *
     * @return 是否入网
     */
    @GetMapping(value = "/join")
    @RequiresAuthentication
    public Result join(@RequestParam("imei") String imei) {
        _logger.info("入网查询接口 start... imei=" + imei);
        Result result = new Result();
        result.setSuccess(true);
        result.setMsg("已入网并绑定了网点");
        return result;
    }


}
